﻿@model dynamic
@{ }
<script src="~/Content/js/index.js"></script>
<div class="content rightmenu margintop">
	<div class="colleft">
		<div class="col1wrap">
			<div class="leftside">
                @Html.Partial("_YSearchResult")
			</div><!--leftside-->
		</div>
		<div class="rightside">
            @Html.Partial("_RelatedResult", ViewBag.RelatedKeywords as IList<_404park.Web.Models.FeedViewModel>)
		</div><!--rightside-->
	</div>
</div><!--content-->	

<script type="text/javascript">
    function getSearchFromQueryString(parameter) {
            var qrStr = window.location.search;
            var spQrStr = qrStr.substring(1);
            var arrQrStr = new Array();
            // splits each of pair
            var arr = spQrStr.split('&');

            for (var i = 0; i < arr.length; i++) {
                // splits each of field-value pair
                var index = arr[i].indexOf('=');
                var key = arr[i].substring(0, index);
                var val = arr[i].substring(index + 1);
 
                // saves each of field-value pair in an array variable
                arrQrStr[key] = val;
            }
            if (arrQrStr[parameter] != "" && arrQrStr[parameter].length > 0)
                YHS.search(arrQrStr[parameter]);
    }
    var keyQueryString = "q";
    getSearchFromQueryString(keyQueryString);
</script>
	


